package com.rg1906.service.impl;

import java.sql.SQLException;

import com.rg1906.dao.Impl.InsertTeacherDaoImpl;

public class InsertTeacherServiceImpl {
	InsertTeacherDaoImpl dao=new InsertTeacherDaoImpl();

	public int insertTeacher(String teacherName, String gid, String phone, String address, String sex, String age, String sNum) throws SQLException {
		return dao.insertTeacher(teacherName,gid,phone,address,sex,age,sNum);
		
	}

	public String getMaxNum(String gid) throws SQLException {
		return dao.getMaxNum(gid);
	}

	public int insertTeacherSNum(String sNum, int i, String img) throws SQLException {
		return dao.insertTeacherSNum(sNum,i,img);
		
	}

	public int queryID(String sNum) throws SQLException {
		return dao.queryID(sNum);
		
	}

	public int insertUid(int gid1, String sNum) throws SQLException {
		return dao.insertUid(gid1,sNum);
		
	}
}
